package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class StartField {

    private int beginIndex;
    private int endIndex;
    private NonSecondPrimaryDatetimeField nonSecondPrimaryDatetimeField;
    private UnsignedInteger intervalLeadingFieldPrecision;

    public StartField(int endIndex,
                      NonSecondPrimaryDatetimeField nonSecondPrimaryDatetimeField,
                      UnsignedInteger intervalLeadingFieldPrecision) {
        this.beginIndex = nonSecondPrimaryDatetimeField.getBeginIndex();
        this.endIndex = endIndex;
        this.nonSecondPrimaryDatetimeField = nonSecondPrimaryDatetimeField;
        this.intervalLeadingFieldPrecision = intervalLeadingFieldPrecision;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public NonSecondPrimaryDatetimeField getNonSecondPrimaryDatetimeField() {
        return nonSecondPrimaryDatetimeField;
    }

    public UnsignedInteger getIntervalLeadingFieldPrecision() {
        return intervalLeadingFieldPrecision;
    }

}
